package com.autohome.wz.business.coupon.model;

import java.io.Serializable;
import java.util.Date;

public class CouponCodeSeller implements Serializable {
    private Integer id;

    private Integer sellerBatchId;

    private Integer userId;

    private String openId;

    private Integer sellerId;

    private String sellerActivityId;

    private String sellerAllowanceId;

    private String sellerAllowanceCode;

    private Integer status;

    private Integer isDel;

    private Date createdStime;

    private Date modifiedStime;

    private String codeNo;

    private String batchExtendNo;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSellerBatchId() {
        return sellerBatchId;
    }

    public void setSellerBatchId(Integer sellerBatchId) {
        this.sellerBatchId = sellerBatchId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId == null ? null : openId.trim();
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public String getSellerActivityId() {
        return sellerActivityId;
    }

    public void setSellerActivityId(String sellerActivityId) {
        this.sellerActivityId = sellerActivityId == null ? null : sellerActivityId.trim();
    }

    public String getSellerAllowanceId() {
        return sellerAllowanceId;
    }

    public void setSellerAllowanceId(String sellerAllowanceId) {
        this.sellerAllowanceId = sellerAllowanceId == null ? null : sellerAllowanceId.trim();
    }

    public String getSellerAllowanceCode() {
        return sellerAllowanceCode;
    }

    public void setSellerAllowanceCode(String sellerAllowanceCode) {
        this.sellerAllowanceCode = sellerAllowanceCode == null ? null : sellerAllowanceCode.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreatedStime() {
        return createdStime;
    }

    public void setCreatedStime(Date createdStime) {
        this.createdStime = createdStime;
    }

    public Date getModifiedStime() {
        return modifiedStime;
    }

    public void setModifiedStime(Date modifiedStime) {
        this.modifiedStime = modifiedStime;
    }

    public String getCodeNo() {
        return codeNo;
    }

    public void setCodeNo(String codeNo) {
        this.codeNo = codeNo == null ? null : codeNo.trim();
    }

    public String getBatchExtendNo() {
        return batchExtendNo;
    }

    public void setBatchExtendNo(String batchExtendNo) {
        this.batchExtendNo = batchExtendNo == null ? null : batchExtendNo.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CouponCodeSeller other = (CouponCodeSeller) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSellerBatchId() == null ? other.getSellerBatchId() == null : this.getSellerBatchId().equals(other.getSellerBatchId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
            && (this.getSellerId() == null ? other.getSellerId() == null : this.getSellerId().equals(other.getSellerId()))
            && (this.getSellerActivityId() == null ? other.getSellerActivityId() == null : this.getSellerActivityId().equals(other.getSellerActivityId()))
            && (this.getSellerAllowanceId() == null ? other.getSellerAllowanceId() == null : this.getSellerAllowanceId().equals(other.getSellerAllowanceId()))
            && (this.getSellerAllowanceCode() == null ? other.getSellerAllowanceCode() == null : this.getSellerAllowanceCode().equals(other.getSellerAllowanceCode()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()))
            && (this.getCreatedStime() == null ? other.getCreatedStime() == null : this.getCreatedStime().equals(other.getCreatedStime()))
            && (this.getModifiedStime() == null ? other.getModifiedStime() == null : this.getModifiedStime().equals(other.getModifiedStime()))
            && (this.getCodeNo() == null ? other.getCodeNo() == null : this.getCodeNo().equals(other.getCodeNo()))
            && (this.getBatchExtendNo() == null ? other.getBatchExtendNo() == null : this.getBatchExtendNo().equals(other.getBatchExtendNo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSellerBatchId() == null) ? 0 : getSellerBatchId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
        result = prime * result + ((getSellerId() == null) ? 0 : getSellerId().hashCode());
        result = prime * result + ((getSellerActivityId() == null) ? 0 : getSellerActivityId().hashCode());
        result = prime * result + ((getSellerAllowanceId() == null) ? 0 : getSellerAllowanceId().hashCode());
        result = prime * result + ((getSellerAllowanceCode() == null) ? 0 : getSellerAllowanceCode().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
        result = prime * result + ((getCreatedStime() == null) ? 0 : getCreatedStime().hashCode());
        result = prime * result + ((getModifiedStime() == null) ? 0 : getModifiedStime().hashCode());
        result = prime * result + ((getCodeNo() == null) ? 0 : getCodeNo().hashCode());
        result = prime * result + ((getBatchExtendNo() == null) ? 0 : getBatchExtendNo().hashCode());
        return result;
    }
}